package com.gxa.weixing.pc.service;

import com.gxa.weixing.core.exception.BusinessException;
import com.gxa.weixing.core.pojo.ForGoods;
import com.gxa.weixing.core.pojo.ForGoodsDetails;
import com.gxa.weixing.core.pojo.GoodsDetail;
import com.gxa.weixing.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface ForGoodsService extends BaseService<ForGoods> {

    /**
     * 分页获取所有的兑换商品信息
     */
    List<Map<String,Object>> getAllDetailsByPage(Map<String,Object> map) throws BusinessException;
    /**
     * 分页获取所有的兑换商品信息
     */
    Integer getAllDetailsByPageCount(Map<String,Object> map) throws BusinessException;

    /**
     *删除兑换商品
     */
    void deleteForGoods(Long id) throws BusinessException;

    /**
     *添加或者修改
     */
    void saveForGoods(ForGoodsDetails detail) throws BusinessException;

}
